<!DOCTYPE html>
<html lang="en">

<head>
  <title>预下单</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>

<body>
  <form action="http://beta.numrd.com/openpayapi/v2.0/cashier/JsPay" id="form" method="post">
    <input type="hidden" name="isv_no" value='9000255'><br>
    <input type="hidden" name="bank_mer_no" value='95162015499P006'><br>
    <input type="hidden" name="bank_org_no" value='1600299999'><br>
    <input type="hidden" name="mer_order_no" value='O2022091317585937994112'><br>
    <input type="hidden" name="amount" value='1'><br>
    <input type="hidden" name="nonce_str" value='9067322788146440'><br>
    <input type="hidden" name="subject" value='下单'><br>
    <input type="hidden" name="order_desc" value='order_desc'><br>
    <input type="hidden" name="notify_url" value='http://38080i660i.zicp.vip:34762/notifyV2'><br>
    <input type="hidden" name="call_back_url" value='http://run.buybal.com/openpayapi/v1.0/callback/callBack'><br>
    <input type="hidden" name="device_no" value='NS930000001089'><br>
    <input type="hidden" name="sign_type" value='MD5'><br>
    <input type="hidden" name="terminal_info"
      value='%7B%22terminal_type%22:%2210%22,%22terminal_id%22:%22002000106%22,%22terminal_ip%22:%22111.207.36.248%22,%22location%22:%22+113.988007/+34.819642%22%7D'><br>
    <input type="hidden" name="sign" value='04e9f5ec42a3f92d1291f3ad6ba1f4f4'><br>
  </form>
  <script type="text/javascript">
    window.onload = function () {
      console.info("执行前");
      var elementById = document.getElementById("form");
      var terminal_info = document.getElementsByName("terminal_info")[0];
      //      解码application/x-www-form-urlencoded字符  将%开头的16进制表示的内容解码。
      var terminal_info_value = decodeURI(terminal_info.value);
      console.info(terminal_info_value);
      terminal_info.value = terminal_info_value;
      elementById.submit();
      console.info("执行后");
    }
  </script>
</body>

</html>